package com.aqie.seckill.util;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;

public class CharSetUtil<T> {
    public static void main(String[] args) {
        String s = "\u6D88\u8D39\u8005\u6570\u91CF \t " +
                "\u6D88\u8D39\u8005\u6BCF\u6B21\u4ECE\u961F\u5217\u83B7\u53D6\u7684\u6D88\u606F\u6570\u91CF \t" +
                "\u6D88\u8D39\u8005\u81EA\u52A8\u542F\u52A8 \t" +
                "\u6D88\u8D39\u5931\u8D25\uFF0C\u81EA\u52A8\u91CD\u65B0\u5165\u961F";
        dump(URLDecoder.decode(s));
    }

    public static void dump(String s){
       System.out.println(s);
    }
    public static String Unicode2Chinese(String s){
        try {
             return URLDecoder.decode(s,"UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }
        return "";
    }
}
